﻿namespace JavaScript8000.MagicBox
{
    /// <summary>
    /// Represent virtual variable in table of user token.
    /// </summary>
    public class VVar
    {
        #region Public Properties

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="VVar"/> is assignable.
        /// </summary>
        /// <value>
        ///   <c>true</c> if assignable; otherwise, <c>false</c>.
        /// </value>
        public bool Assignable { get; set; }

        /// <summary>
        /// Gets or sets the name of variable.
        /// </summary>
        /// <value>
        /// The name.
        /// </value>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the value of variable.
        /// </summary>
        /// <value>
        /// The value.
        /// </value>
        public VVarValue Value { get; set; }

        #endregion
    }
}